﻿@model TJBHJJ.Models.Down
@{
    ViewBag.Title = "资料下载";
    Layout = "~/Views/Shared/_Layout.cshtml";
    List<TJBHJJ.Models.Down> group = (List<TJBHJJ.Models.Down>)ViewData["group"];
}
<h2>@Html.ActionLink("资料下载", "Index", new { page = (int)ViewData["page"] })>>@Model.Name</h2>
<table>
    <tr>
        <td width="100px">
            名称：
        </td>
        <td>@Model.Name
        </td>
    </tr>
    <tr>
        <td>
            描述：
        </td>
        <td>@Model.Content
        </td>
    </tr>
    <tr>
        <td>
            下载：
        </td>
        <td>
            <a href=@Url.Content(Model.SoftUrl) target="_blank">点击下载</a>
        </td>
    </tr>
    <tr>
        <td>
            下载次数：
        </td>
        <td>@Model.ReadCount
        </td>
    </tr>
    <tr>

        <td colspan="2">上一个：
            @if(group[0]!=null)
            {
                @Html.ActionLink(group[0].Name.Length>13?group[0].Name.Substring(0,13)+"...":group[0].Name,"Detail",new {page = (int)ViewData["page"], id = group[0].Id })
            }
            下一个：
            @if(group[2]!=null)
            {
                @Html.ActionLink(group[2].Name.Length>13?group[2].Name.Substring(0,13)+"...":group[2].Name,"Detail",new {page = (int)ViewData["page"], id = group[2].Id })
            }
        </td>
    </tr>
</table>
